#ifndef sim7000_h
#define sim7000_h

#include "sim7x00.h"
#include "arduPi.h"
//#include "sim7000_at_cmd.h"

#define DEBUG_SIM7000 0

/* sim7x00 Class */
class sim7000 : public sim7x00 {

public:
	// GPS positoning
	bool GPS_Positioning(void);
	char* Get_Latitude(const char* gps_buffer);
	char* Get_Longitude(const char* gps_buffer);
	char* Get_UTC_Time(const char* gps_buffer);

	//TCP IP communication
	int  Get_Signal_Value(void);
	char* Get_Supported_APN(void); 
	bool Get_Current_APN(const char* current_apn);
	bool Set_Network_APN(const char* apn);
	bool Bring_Up_Connection(void);
	bool Get_Local_IP(void);
	bool Open_Socket_Client(const char* protocol, const char* remote_ip, unsigned int remote_port);
	bool Send_Data(char* data, unsigned int len);
	bool Send_Data(char* data);
	void Receiving_Data(unsigned int timeout);
	bool Close_Connect(void);
	//bool 
	
	//MQTT communication using TCP
	//MQTT

	char _utc_time[15];
	char _latitude[10];
	char _longitude[11];
	char _apn[10];
	char _local_ip[30];
	bool flag;
};

#endif
